package com.xiaobai.login.request;

import com.xiaobai.common.base.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 编辑用户信息请求对象
 *
 * @author bail
 * @date 2019/12/19.14:08
 */
@ApiModel
@Data
public class UserUpdateReq extends BaseRequest {
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true, example = "1")
    @NotNull
    private Long userId;

    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户头像", example = "/pic/xxx.jpg")
    private String userPhoto;

    /**
     * 用户手机号
     */
    @ApiModelProperty(value = "用户手机号", required = true, example = "13300000000")
    @NotEmpty
    private String userPhone;

    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称", required = true, example = "xxx")
    @NotEmpty
    private String userNickName;
}
